<!DOCTYPE html>
<html> 
<title>开奖采集工具</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<script src="js/jquery.1.7.2.min.js"></script>

<body onLoad="Autofresh()"> 

<div id="center">


</div>

 <script>
 function get_num(){
 $.post("kj_num/index.php", { cp_name_id: 'bjpk10',name: '北京pk10'});
 $.post("kj_num/index.php", { cp_name_id: 'cqssc',name: '重庆时时彩'});
 $.post("kj_num/index.php", { cp_name_id: 'tjssc',name: '天津时时彩'});
 $.post("kj_num/index.php", { cp_name_id: 'xjssc',name: '新疆时时彩'});
 $.post("kj_num/index.php", { cp_name_id: 'mlaft.',name: '幸运飞艇'});
 $.post("kj_num/index.php", { cp_name_id: 'cqklsf',name: '重庆幸运农场'});
 $.post("kj_num/index.php", { cp_name_id: 'bjkl8',name: '北京快乐8'});
 $.post("kj_num/index.php", { cp_name_id: 'gdklsf',name: '广东快乐十分'});
 $.post("kj_num/index.php", { cp_name_id: 'fc3d',name: '福彩3D'});
 $.post("kj_num/index.php", { cp_name_id: 'pl3',name: '福彩3D'});
}
 </script>

 <script> 
    var xmlobj; 
    function createXMLHttpRequest(){ 
      if(window.ActiveXObject){ 
        xmlobj=new ActiveXObject("Microsoft.XMLHTTP"); 
      } 
      else if(window.XMLHttpRequest){ 
        xmlobj=new XMLHttpRequest(); 
      } 
    } 
    function Autofresh(){ 
      createXMLHttpRequest();     
	  //get已经获取到的用户名
      xmlobj.open("GET","/kj_num/index.php",true); 
      xmlobj.onreadystatechange=doAjax; 
      xmlobj.send("r="+Math.random());//使用随机数处理缓存
	  get_num();
	} 
    function doAjax(){ 
      if(xmlobj.readyState==4 && xmlobj.status==200){ 
        var time_span=document.getElementById('center'); 
        time_span.innerHTML=xmlobj.responseText; 
	    setTimeout("Autofresh()",5000); 
      } 
    } 
  </script>

  </body>

</html>